﻿@inherits UmbracoTemplatePage
@{
    Layout = "WithoutSiderbar.cshtml";
}

@section SubRenderSection{
    <script src="/assets/js/Markdown.Converter.js"></script>
    <script src="/assets/js/Markdown.Editor.js"></script>
    <script src="/assets/js/Markdown.Sanitizer.js"></script>
}

<div class="container consult-create">

    <form class="form-horizontal form-heading clearfix row">
        <div class="col-md-4">
            <div class="form-group">
                <label for="txtTitle" class="control-label col-md-3">标题：</label>
                <div class="col-md-9">
                    <input type="text" class="form-control" id="txtTitle" placeholder="咨询标题：">
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label for="selType" class="control-label col-md-3">类别：</label>
                <div class="col-md-9">
                    @Html.Partial("RenderConsultType")
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label for="txtEmail" class="control-label col-md-3">邮箱：</label>
                <div class="col-md-9">
                    <input type="text" class="form-control" id="txtEmail" placeholder="请留下邮箱，便于回复：">
                </div>
            </div>
        </div>
    </form>

    <div class="wmd-panel clearfix">
        <div class="col-md-6">
            <div class="panel-header">
                <div id="wmd-button-bar-consulting" class="wmd-button"></div>
                <div class="tips-title">编辑</div>
            </div>
            <textarea class="wmd-input" id="wmd-input-consulting"></textarea>
        </div>
        <div class="col-md-6">
            <div class="panel-header">
                <div class="tips-title">预览</div>
            </div>
            <div class="preview-with-scroll">
                <div id="wmd-preview-consulting" class="wmd-preview markdown-sync"></div>
            </div>
        </div>
    </div>

    <div class="consult-submit col-md-12">
        <button class="btn btn-success" id="btnSaveConsult">提交</button>
    </div>
</div>